package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 天气信息实体类
 */
public class Weather extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 天气ID */
    private Long id;

    /** 城市名称 */
    private String cityName;
    
    /** 天气状况 */
    private String text;
    
    /** 温度 */
    private String temp;
    
    /** 体感温度 */
    private String feelsLike;
    
    /** 湿度 */
    private String humidity;
    
    /** 风向 */
    private String windDir;
    
    /** 风力等级 */
    private String windScale;
    
    /** 风速 */
    private String windSpeed;
    
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public String getFeelsLike() {
        return feelsLike;
    }

    public void setFeelsLike(String feelsLike) {
        this.feelsLike = feelsLike;
    }

    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    public String getWindDir() {
        return windDir;
    }

    public void setWindDir(String windDir) {
        this.windDir = windDir;
    }

    public String getWindScale() {
        return windScale;
    }

    public void setWindScale(String windScale) {
        this.windScale = windScale;
    }

    public String getWindSpeed() {
        return windSpeed;
    }

    public void setWindSpeed(String windSpeed) {
        this.windSpeed = windSpeed;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    @Override
    public String toString() {
        return "Weather [id=" + id + ", cityName=" + cityName + ", text=" + text + ", temp=" + temp 
            + ", feelsLike=" + feelsLike + ", humidity=" + humidity 
            + ", windDir=" + windDir + ", windScale=" + windScale + ", windSpeed=" + windSpeed
            + ", updateTime=" + updateTime + "]";
    }
} 